<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <body>
        <ui:composition template="../templates/default3.xhtml">  
            <ui:define name="content">
                <h:form binding="#{jobManagerBean.loadAddQuotation}">
                    <p:panel header="Quotation Information" id="addQuotation">
                        <p:messages/> 
                        <table>
                            <tr>
                                <td width="135px"> User ID:</td>
                                <td>
                                    <b><h:outputText id="userId" value=" #{jobManagerBean.userId}"/></b>
                                </td>
                            </tr>
                            <tr>
                                <td width="135px"> Company:</td>
                                <td>
                                    <b><h:outputText id="company" value="#{jobManagerBean.customer.company}"/></b>
                                </td>
                            </tr>
                            <tr>
                                <td>Person in-charge:</td>
                                <td>
                                    <h:outputText id="name" value="#{jobManagerBean.customer.firstName} #{jobManagerBean.customer.lastName}"/>
                                </td>
                            </tr>
                            <tr>
                                <td>Job type:</td>
                                <td>
                                    <h:selectOneMenu id="type" value="#{jobManagerBean.type}">
                                        <f:selectItem id="Normal" itemLabel="Normal routie" itemValue="Normal routie"/>
                                        <f:selectItem id="New" itemLabel="New routie" itemValue="New routie"/>
                                        <f:selectItem id="Event" itemLabel="Event" itemValue="Event"/>
                                        <f:selectItem id="Rear" itemLabel="Rear" itemValue="Rear"/>
                                    </h:selectOneMenu>           
                                </td>
                            </tr>
                            <tr>
                                <td valign ="top">Description:</td>
                                <td>
                                    <p:inputTextarea required="true" id="description" style="width:300px;height:100px;" effectDuration="400" requiredMessage="Remark required" value="#{jobManagerBean.description}"> 
                                        <f:validateLength minimum="5" maximum="160"/>
                                    </p:inputTextarea> 
                                    <p:message for="description"/></td>
                            </tr>
                        </table>
                    </p:panel>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>
